-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix BitVector shifts #2731
Fix BitVector shifts #2731
Conversation
Thanks! We usually use That raises a separate point: perhaps we need to look at And since this is a fix that pertains to a released version of Clash, it should have a changelog entry. [edit] |
Ah no, wait, it was in the bit shifters themselves. They call
for [edit] I suppose the ones that take bit indices are fair that they raise an exception. If you passed them a valid bit index, they'd surely work right. It's just nobody found it yet. Those |
12437fc
to
fe40c2c
Compare
fe40c2c
to
75d8235
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Ah ideally it'd have Sorry for initially missing this. I'm rather tired, perhaps I should have just let it lie until tomorrow, in retrospect. I don't think it's that bad if it is missing from this entry. This'll be part of 1.8.2, which will have a reasonably short changelog, I expect. It would not have been nice for 1.8.0, since that introduced a lot of changes, so that changelog was quite some work to write. |
75d8235
to
f96795e
Compare
Fixes #2730 such that
(+>>.)
and(.<<+)
are compliant with(+>>)
and(<<+)
for bit vectors of zero length, respectively.Still TODO: